/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.accounting.dto;

import com.javaeye.common.dto.DTO;
import com.javaeye.store.dto.MaterialsSKUDetail;

public class MaterialsMonthInventoryCheckDetail implements DTO {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8785936138754021678L;
	
	public static final int INVENTORY_TYPE_ALLOW = 0;
	
	public static final int INVENTORY_TYPE_DEFECTIVE = 1;
	
	private int id;
	
	private MaterialsSKUDetail skuDetail;
	
	private String batchNo;
	
	private double price;
	
	private float number;
	
	private float realNumber;
	
	private float diffNumber;
	
	private double diffAmount;
	
	private int inventoryType;
	
	private MaterialsMonthInventoryCheck check;
	
	public MaterialsMonthInventoryCheckDetail() {
		check = new MaterialsMonthInventoryCheck();
		skuDetail = new MaterialsSKUDetail();
	}
	
	public String getInventoryTypeName() {
		switch (inventoryType){
		case INVENTORY_TYPE_ALLOW:
			return "合格库存";
		case INVENTORY_TYPE_DEFECTIVE:
			return "不合格库存";
		default :
			return "";
		}
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public float getNumber() {
		return number;
	}

	public void setNumber(float number) {
		this.number = number;
	}

	public float getRealNumber() {
		return realNumber;
	}

	public void setRealNumber(float realNumber) {
		this.realNumber = realNumber;
	}

	public float getDiffNumber() {
		return diffNumber;
	}

	public void setDiffNumber(float diffNumber) {
		this.diffNumber = diffNumber;
	}

	public MaterialsMonthInventoryCheck getCheck() {
		return check;
	}

	public void setCheck(MaterialsMonthInventoryCheck check) {
		this.check = check;
	}

	public MaterialsSKUDetail getSkuDetail() {
		return skuDetail;
	}

	public void setSkuDetail(MaterialsSKUDetail skuDetail) {
		this.skuDetail = skuDetail;
	}

	public void setInventoryType(int inventoryType) {
		this.inventoryType = inventoryType;
	}

	public int getInventoryType() {
		return inventoryType;
	}

	public void setDiffAmount(double diffAmount) {
		this.diffAmount = diffAmount;
	}

	public double getDiffAmount() {
		return diffAmount;
	}

}
